package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TrustEnclosureMapper;
import com.ruoyi.system.domain.TrustEnclosure;
import com.ruoyi.system.service.ITrustEnclosureService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-17
 */
@Service
public class TrustEnclosureServiceImpl implements ITrustEnclosureService 
{
    @Autowired
    private TrustEnclosureMapper trustEnclosureMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param teId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TrustEnclosure selectTrustEnclosureById(Long teId)
    {
        return trustEnclosureMapper.selectTrustEnclosureById(teId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param trustEnclosure 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TrustEnclosure> selectTrustEnclosureList(TrustEnclosure trustEnclosure)
    {
        return trustEnclosureMapper.selectTrustEnclosureList(trustEnclosure);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param trustEnclosure 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTrustEnclosure(TrustEnclosure trustEnclosure)
    {   trustEnclosure.setCreateTime(DateUtils.getNowDate());
        return trustEnclosureMapper.insertTrustEnclosure(trustEnclosure);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param trustEnclosure 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTrustEnclosure(TrustEnclosure trustEnclosure)
    {   trustEnclosure.setUpdateTime(DateUtils.getNowDate());
        return trustEnclosureMapper.updateTrustEnclosure(trustEnclosure);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param teIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTrustEnclosureByIds(Long[] teIds)
    {
        return trustEnclosureMapper.deleteTrustEnclosureByIds(teIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param teId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTrustEnclosureById(Long teId)
    {
        return trustEnclosureMapper.deleteTrustEnclosureById(teId);
    }
}
